package com.simplegovern.authority.dao;

import java.util.List;

import com.simpleframe.persistence.hibernate.Finder;
import com.simpleframe.persistence.hibernate.HibernateGenericDao;
import com.simplegovern.authority.SysUserRole;

public class UserRoleDAO extends HibernateGenericDao<SysUserRole, Long>{

	public List<SysUserRole> getUserRoleByUserId(Long userId){
		Finder finder = Finder.create(SysUserRole.class);
		finder.andEq("userId", userId);
		return findByFinder(finder);
	}
}
